package com.yixin.hospital.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yixin.hospital.common.ApiResult;
import com.yixin.hospital.entity.domain.DrugDepository;
import com.yixin.hospital.entity.dto.req.drugdepository.DrugDepositoryAddReqDTO;
import com.yixin.hospital.entity.dto.req.drugdepository.DrugDepositoryEditReqDTO;
import com.yixin.hospital.entity.vo.DeptListDrugDepVO;
import com.yixin.hospital.entity.vo.DrugDepositoryVo;

import java.util.List;

/**
* @author Administrator
* @description 针对表【drug_depository(药品仓库表)】的数据库操作Service
* @createDate 2024-04-16 14:53:45
*/
public interface DrugDepositoryService extends IService<DrugDepository> {

    ApiResult<List<DrugDepositoryVo>> allDropList();

    ApiResult<?> add(DrugDepositoryAddReqDTO drugDepositoryAddReqDTO, String userName);

    ApiResult<?> edit(DrugDepositoryEditReqDTO drugDepositoryEditReqDTO, String userName);

    ApiResult<List<DeptListDrugDepVO>> deptListByDeptId(Long deptId);

    ApiResult<List<DrugDepositoryVo>> getAvailableListByOptType(Integer optType, Long userId);
}
